<?php /*a:2:{s:67:"/Applications/MAMP/htdocs/application/index/view/article/index.html";i:1591421853;s:58:"/Applications/MAMP/htdocs/application/index/view/base.html";i:1591464705;}*/ ?>
<!doctype html>
<html lang="zn-en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/../static/index/lib/css/bootstrap.css"  crossorigin="anonymous">
    <link rel="stylesheet" href="/../static/index/css/index.css">
    <link href="/../static/layui/css/layui.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"  crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.bundle.js" crossorigin="anonymous"></script>
    <script src="/../static/index/lib/js/bootstrap.js"  crossorigin="anonymous"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="/../static/layui/layui.all.js"></script>
    <title>首页</title>
</head>
<body>
<header class="header">
    <div class="logo">
        <div class="btitle d-inline-block p-1 pb-1">
            <img src="/../static/index/images/logo.png" alt="">
        </div>
        <div class="login">
            <i class="iconfont">&#xe7a5;</i>
            <?php if(empty(session('user_id'))): ?>
            <a href="<?php echo url('index/login/login'); ?>">登录</a>/<a href="<?php echo url('index/login/reg'); ?>">注册</a>
            <?php else: ?>
            <a href="<?php echo url('index/center/index'); ?>">个人中心</a>/ <a id="layout">退出</a>
            <?php endif; ?>

        </div>
    </div>

</header>
<nav>
    <ul>
        <li >
            <a class="" href="<?php echo url('index/index/index'); ?>">首页</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/article/index'); ?>">动态咨询</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/project/index'); ?>">视频课程</a>
        </li>
        <li >
            <a class="" href="<?php echo url('index/live/index'); ?>">在线直播</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/book/index'); ?>">图书商城</a>
        </li>
        <li>
            <a class="" href="<?php echo url('index/othvideo/index'); ?>">短视频专区</a>
        </li>
    </ul>
</nav>
<div class="main-content">

<div class="art-cont">
    <div class="row">
        <div class="col-2 art-tit" >
            <div class="nav flex-column nav-pills" id="v-pills-tab" >
                <a class="nav-link active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" >政策文件</a>
                <a class="nav-link" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" >考试资料</a>
            </div>
        </div>
        <div class="col-10 art-main">
            <div class="tab-content" id="v-pills-tabContent">
                <div class="tab-pane fade show active" id="v-pills-home" >
                    <div class="art-title">
                        <div class="art-b-title">
                            政策文件
                        </div>
                        <div class="art-s-title">
                            NEWS
                        </div>
                    </div>
                    <ul>
                        <?php foreach($artList as $v): if($v['art_type']==1): ?>
                        <li>
                            <img src="http://study.tongpankt.com/files/course/2020/04-16/2313266af25c067170.png" alt="">
                            <div class="art-list">
                                <i class="iconfont">&#xe629;</i><a href="<?php echo url('index/article/read',['art_id'=>$v['art_id']]); ?>"><?php echo htmlentities($v['art_name']); ?></a>
                                <span><i class="iconfont">&#xe600;</i><?php echo date('Y-m-d',$v['art_creat_time']); ?></span>
                            </div>

                        </li>
                        <?php endif; endforeach; ?>

                    </ul>
                </div>
                <div class="tab-pane fade" id="v-pills-profile" >
                    <div class="art-title">
                        <div class="art-b-title">
                            考试资料
                        </div>
                        <div class="art-s-title">
                            EXAM
                        </div>
                    </div>
                    <ul>
                        <?php foreach($artList as $v): if($v['art_type']==2): ?>
                        <li>
                            <img src="http://study.tongpankt.com/files/course/2020/04-16/2313266af25c067170.png" alt="">
                            <div class="art-list">
                                <i class="iconfont">&#xe629;</i><a href="<?php echo url('index/article/read',['art_id'=>$v['art_id']]); ?>"><?php echo htmlentities($v['art_name']); ?></a>
                                <span><i class="iconfont">&#xe600;</i><?php echo date('Y-m-d',$v['art_creat_time']); ?></span>
                            </div>

                        </li>
                        <?php endif; endforeach; ?>

                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

</div>
<footer>
    <div class="copyright">
        Copyright © 2010-2020 MHK国语在线推广学习平台 All Rights Reserved<br>
        陕ICP备19016245号-1
    </div>
</footer>


<script>
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $('#layout').click(function () {
            $.post("<?php echo url('index/login/layout'); ?>","",function (res) {
                if(res.code){
                    layer.msg("退出成功",{icon:1});
                    setTimeout(function () {
                        window.location.href="<?php echo url('index/index/index'); ?>"
                    },500)
                }else {
                    layer.msg(res.msg,{icon:2});
                }
            })
    })
</script>
</body>
</html>